import { Route, Redirect, Switch } from 'react-router-dom'
import Home from './views/Home'
import Detail from './views/Detail'
import Login from './views/Login'
import './mock'
import './App.css';

function App() {
  return (
    <div className="App">
      <Switch>
        <Route path="/home" component = { Home }/>
        <Route path="/detail" component = { Detail }/>
        <Route path="/login" component = { Login }/>
        <Redirect to="/home" from="/"/>
      </Switch>
    </div>
  );
}

export default App;
